﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2016._12
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime date1 = DateTime.Now;
            Console.WriteLine("{0}:{1}", date1.Hour, date1.Minute);
            Console.WriteLine(DateTime.UtcNow);
            Console.WriteLine(date1.ToShortDateString());
            Console.WriteLine(date1.ToShortTimeString());
            Console.WriteLine(date1.ToLongDateString());
            Console.WriteLine(date1.ToLongTimeString());
            Console.WriteLine(date1.GetDateTimeFormats());

            TimeSpan ts = new TimeSpan(500);
           // Console.WriteLine(ts);

            DateTimeOffset dt = new DateTimeOffset(DateTime.Now);
            // Console.WriteLine(dt);
            // Console.WriteLine(dt.ToUniversalTime());
            Console.WriteLine(date1.ToString());
            

            Console.ReadKey();
        }
    }
}
